package com.ngmaster.socket.util;

import com.ngmaster.apiserver.util.Md5Util;

import java.util.LinkedHashMap;

public class SignUtil {

    public static String sign(LinkedHashMap<String, String> requestBody, String appSecure) {
        StringBuilder signSrc = new StringBuilder();
        for (String v : requestBody.values()) {
            signSrc.append(v);
        }
        signSrc.append(appSecure);
        return Md5Util.generate(signSrc.toString());
    }
}
